package com.un.ebs.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/7/21 19:25
 */
@Getter
public enum BooleanEnum implements IEnum {

    Default(9, "未指定"),
    No(0, "否"),
    Yes(1, "是");

    @EnumValue
    private final int value;

    private final String desc;

    BooleanEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }


    @Override
    public int getCode() {
        return this.value;
    }
}
